

$(function(){
    function initArray()    
	{    
	  for(i=0;i<initArray.arguments.length;i++)    
	  this[i]=initArray.arguments[i];    
	}    
	function getFullYear(d)    
	{    
	  yr=d.getYear();if(yr<1000)    
	  yr+=1900;
	  return yr;
	}   
	var isnMonths=new initArray("January","February","March","April","May","June","July","August","September","October","November","December");    
	var isnDays=new initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");    
	today=new Date();    
	hrs=today.getHours();    
	min=today.getMinutes();    
	sec=today.getSeconds();    
	clckh=""+((hrs>12)?hrs-12:hrs);    
	clckm=((min<10)?"0":"")+min;clcks=((sec<10)?"0":"")+sec;    
	clck=(hrs>=12)?"AM":"PM";    
	var stnr="";    
	var ns="0123456789";    
	var a="";    
	   
	 
	var hourTimeStr = "<span class='hourTime'>"+clckh + ":" +clckm + clck +"</span><br/>";
	var dateTimeStr = hourTimeStr + isnDays[today.getDay()]+","+isnMonths[today.getMonth()]+" "+today.getDate()+"."+getFullYear(today);
	
	$("p.dateTime").html(dateTimeStr);

});